import request from "@/plugins/axios";
//  售后订单管理
export function listApi(data) {
  return request({
    url: "/shop/refund/index",
    method: "post",
    data,
  });
}

//  售后申请审核
// status
// 0拒绝,1审核通过
export function auditApi(data) {
  return request({
    url: "/shop/refund/audit",
    method: "post",
    data,
  });
}
// 售后申请处理
// type
// 1退款，2发货
export function refundApi(data) {
  return request({
    url: "/shop/refund/refund",
    method: "post",
    data,
  });
}
// 发起退款

export function redoApi(data) {
  return request({
    url: "/shop/refund/redo",
    method: "post",
    data,
  });
}
